#!/usr/bin/env python
# -*- coding:utf-8 -*-

from selenium import webdriver
from selenium.webdriver.common.keys import Keys

driver = webdriver.PhantomJS()
driver.get("https://www.douban.com/")
driver.find_element_by_name("form_email").send_keys("215731932@qq.com")
driver.find_element_by_name("form_password").send_keys("yzl314159")
driver.find_element_by_id("captcha_field").send_keys("chemical")
driver.find_element_by_class_name("bn-submit").click()
driver.save_screenshot("douban.png")
driver.quit()
print("完成")
